/**
 * nextTick setImmediate 区别和联系
 * nextTick执行栈底部 -- setImmediate 事件
 */

 function read(){
     process.nextTick(function(){
         console.log('000');
     })
     setImmediate(function(){
         console.log(1)
     })
     setTimeout(function(){
         console.log(2);
     })
     console.log(333);
 }
 read()